package pers.archives.common.ov.common;

import lombok.Getter;

/* 定义返回值状态码以及描述
 *@program:archives-parent
 *@author: 赵浩浩
 *@Time: 2020/8/19  22:58
 */
@Getter
public enum  ResponseCode {

    USER_LOGIN_SUCCESS(10000, "用户登陆成功"),
    USER_LOGIN_ERROR(10001, "用户登陆失败 用户密码错误"),
    USER_LOGOUT_SUCCESS(10010, "退出成功"),
    USER_NOT_LOGIN(10002, "没有找到登录的用户信息"),
    USER_GET_USER_INFO(10003, "获取用户数据成功"),
    HOME_GET_MENU_INFO(20001, "成功获取菜单");

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private int code;

    private String message;
}
